package lava.rt.persistence;


import java.util.Collection;
import java.util.List;
import java.util.function.Supplier;

import lava.rt.expcption.PersistenceExecption;



public interface  DataContext  {

	

	
	
	
	
	
	
	public <E extends Entity> E getEntity(Class<E> cls,Object pk) throws PersistenceExecption;

	public <E extends Entity> int addEntities(Collection<E> entities) throws PersistenceExecption ;

	public int addEntity(Entity entity) throws PersistenceExecption ;
	

	public int setEntity(Entity entity) throws PersistenceExecption;

	

	public <E extends Entity> int setEntities(Collection<E> entities) throws PersistenceExecption ;

	

	public int removeEntity(Entity entity) throws PersistenceExecption ;
	
	public <E extends Entity> int removeEntities(Collection<E> entities) throws PersistenceExecption;

	
	
	
	
	

	
}
